Optimal. Leaf size=44 \[ \frac{\tan ^5(c+d x)}{5 d}-\frac{\tan ^3(c+d x)}{3 d}+\frac{\tan (c+d x)}{d}-x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0246057, antiderivative size = 44, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 2, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {3473, 8} \[ \frac{\tan ^5(c+d x)}{5 d}-\frac{\tan ^3(c+d x)}{3 d}+\frac{\tan (c+d x)}{d}-x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3473
Rule 8
Rubi steps
\begin{align*} \int \tan ^6(c+d x) \, dx &=\frac{\tan ^5(c+d x)}{5 d}-\int \tan ^4(c+d x) \, dx\\ &=-\frac{\tan ^3(c+d x)}{3 d}+\frac{\tan ^5(c+d x)}{5 d}+\int \tan ^2(c+d x) \, dx\\ &=\frac{\tan (c+d x)}{d}-\frac{\tan ^3(c+d x)}{3 d}+\frac{\tan ^5(c+d x)}{5 d}-\int 1 \, dx\\ &=-x+\frac{\tan (c+d x)}{d}-\frac{\tan ^3(c+d x)}{3 d}+\frac{\tan ^5(c+d x)}{5 d}\\ \end{align*}
Mathematica [A] time = 0.0150459, size = 53, normalized size = 1.2 \[ \frac{\tan ^5(c+d x)}{5 d}-\frac{\tan ^3(c+d x)}{3 d}-\frac{\tan ^{-1}(\tan (c+d x))}{d}+\frac{\tan (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 50, normalized size = 1.1 \begin{align*}{\frac{ \left ( \tan \left ( dx+c \right ) \right ) ^{5}}{5\,d}}-{\frac{ \left ( \tan \left ( dx+c \right ) \right ) ^{3}}{3\,d}}+{\frac{\tan \left ( dx+c \right ) }{d}}-{\frac{\arctan \left ( \tan \left ( dx+c \right ) \right ) }{d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.86456, size = 55, normalized size = 1.25 \begin{align*} \frac{3 \, \tan \left (d x + c\right )^{5} - 5 \, \tan \left (d x + c\right )^{3} - 15 \, d x - 15 \, c + 15 \, \tan \left (d x + c\right )}{15 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.53716, size = 99, normalized size = 2.25 \begin{align*} \frac{3 \, \tan \left (d x + c\right )^{5} - 5 \, \tan \left (d x + c\right )^{3} - 15 \, d x + 15 \, \tan \left (d x + c\right )}{15 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.636812, size = 39, normalized size = 0.89 \begin{align*} \begin{cases} - x + \frac{\tan ^{5}{\left (c + d x \right )}}{5 d} - \frac{\tan ^{3}{\left (c + d x \right )}}{3 d} + \frac{\tan{\left (c + d x \right )}}{d} & \text{for}\: d \neq 0 \\x \tan ^{6}{\left (c \right )} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 4.1907, size = 1335, normalized size = 30.34 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]